package com.drg.center.entity.param;

import com.guaike.core.entity.annotation.IsEnumValue;
import com.drg.center.entity.enums.UserStatusEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @Author: zhangxilin
 * @Date: 2022/11/10
 */
@Data
@ApiModel("启用、冻结入参")
public class SysUserStatusDTO implements Serializable {

    @ApiModelProperty("ID")
    @NotNull(message = "ID不能为空")
    private Long id;

    @ApiModelProperty("状态(1:启用, 2:冻结)")
    @IsEnumValue(clazz = UserStatusEnum.class, column = "code" ,allowedValues = {"0", "1"}, message = "状态传参不合法")
    private Integer status;

    @ApiModelProperty("备注")
    private String remark;
}
